<template>
  <div id="app">
    <van-tabbar v-model="active" v-show="$route.meta.isshow">
      <van-tabbar-item to="/home" icon="home-o">首页</van-tabbar-item>
      <van-tabbar-item to="label" icon="label-o">专题</van-tabbar-item>
      <van-tabbar-item to="/fenlei" icon="apps-o">分类</van-tabbar-item>
      <van-tabbar-item to="/cart" icon="shopping-cart-o">购物车</van-tabbar-item>
      <van-tabbar-item to="/my" icon="user-circle-o">我的</van-tabbar-item>
   </van-tabbar>
    <router-view/>
  </div>
</template>
<script>
export default {
  data(){
    return{
      
    }
  },
  computed:{
    active:{
      get(){
        return this.$route.meta.activenum
      },
      set(){}
    }
  }
}
</script>

<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  height: 100%;
}

#nav {
  padding: 30px;

  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
</style>
